

            function addArduinoCod (Blockly) {
            
                        
                        

                        
        Blockly.Arduino['EXT_DS18B20_SENSOR_BLOCK_1608002835645'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_DS18B20_SENSOR_BLOCK_1608002835645'] = `\n#include "DallasTemperature.h"`;
            Blockly.Arduino.definitions_['define_EXT_DS18B20_SENSOR_BLOCK_1608002835645'] = `#define ONE_WIRE_BUS ${pin}\r\nfloat DS18B20_value;\r\n\r\nOneWire oneWire(ONE_WIRE_BUS);\r\nDallasTemperature dallasTemperature(&oneWire);\r\n\r\nfloat GetDS18B20_value () {\r\n dallasTemperature.requestTemperatures();\r\n DS18B20_value=dallasTemperature.getTempCByIndex(0);\r\n return DS18B20_value;\r\n}`;
            Blockly.Arduino.definitions_['setup_EXT_DS18B20_SENSOR_BLOCK_1608002835645'] = `dallasTemperature.begin();`;
             return  `\r\n`;
        }
                    

                        
        Blockly.Arduino['EXT_DS18B20_SENSOR_BLOCK_1608002835877'] = function(block)
        {
            
          
            Blockly.Arduino.definitions_['include_EXT_DS18B20_SENSOR_BLOCK_1608002835877'] = ``;
            Blockly.Arduino.definitions_['define_EXT_DS18B20_SENSOR_BLOCK_1608002835877'] = ``;
            Blockly.Arduino.definitions_['setup_EXT_DS18B20_SENSOR_BLOCK_1608002835877'] = ``;
             return  [`GetDS18B20_value ()`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        